package admin

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/admin"
)

func Tag(party iris.Party) {
	article := party.Party("/tag")
	serve := admin.Tag{}
	article.Get("/getTagList", hero.Handler(serve.GetTagList))

	article.Post("/addTag", hero.Handler(serve.AddTag))
	article.Post("/delTag", hero.Handler(serve.DelTag))

}
